package day13;

import java.io.Serializable;

/**
 * @author joker
 * @date 2022/4/23 0023 - 1:04
 */
public class Person extends Man<String> implements Serializable {
    private static final long serialVersionUID = 3825880776745132359L;
    private int age=1;
    public String name;
    public static  int b=30;

    public void m1() {
        System.out.println("m1方法");
    }
    private String m2(String str){
        System.out.println("m2方法");

        return str;
    }
     final void m3(){
        System.out.println("M3");
    }

    public Person() {
    }

    private Person(int age, String name) {
        this.age = age;
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
